<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Swiper demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">

    <!-- Link Swiper's CSS -->
    <link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css">

    <!-- Demo styles -->
    <style>
        html,
        body {
            position: relative;
            height: 100%;
        }

        body {
            background: #eee;
            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
            font-size: 14px;
            color: #000;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
        }

        .swiper-container {
            width: 100%;
            height: 100%;
        }

        .swiper-wrapper {
            /* 通过改变animation-timing-function 制作弹性切换效果 */
            transition: 2s cubic-bezier(0.68, -0.4, 0.27, 1.34) 0.2s;
        }

        .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;

            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
        }
    </style>
</head>

<body>
    <!-- Swiper -->
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide"><img
                    src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AA1BdMkf.img?w=768&h=1024&m=6&x=283&y=246&s=171&d=171"
                    alt=""></div>
            <div class="swiper-slide"><img
                    src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AA1BdHHm.img?w=768&h=1024&m=6&x=426&y=202&s=196&d=196"
                    alt=""></div>
            <div class="swiper-slide"><img
                    src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AA1BdKiK.img?w=768&h=1024&m=6&x=432&y=432&s=232&d=232"
                    alt=""></div>
            <div class="swiper-slide"><img
                    src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AA1BdOBh.img?w=768&h=432&m=6&x=832&y=266&s=842&d=206"
                    alt=""></div>
            <div class="swiper-slide"><img
                    src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AA1Bd660.img?w=335&h=422&m=6&x=50&y=44&s=66&d=66"
                    alt=""></div>
            <div class="swiper-slide"><img
                    src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AA1zuPUn.img?w=534&h=356&m=6&x=196&y=40&s=109&d=109"
                    alt=""></div>
            <div class="swiper-slide"><img
                    src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AA1zuUK3.img?w=321&h=458&m=6&x=74&y=55&s=97&d=97"
                    alt=""></div>
            <div class="swiper-slide"><img
                    src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AA1zuUK8.img?w=354&h=546&m=6&x=130&y=91&s=129&d=129"
                    alt=""></div>
            <div class="swiper-slide"><img
                    src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AA1zuSqS.img?w=307&h=459&m=6&x=107&y=66&s=98&d=98"
                    alt=""></div>
            <div class="swiper-slide"><img
                    src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AA1ATeZZ.img?w=768&h=320&m=6&x=468&y=158&s=49&d=49"
                    alt=""></div>
        </div>
        <!-- Add Arrows -->
        <div class="swiper-button-next"></div>
        <div class="swiper-button-prev"></div>
    </div>

    <!-- Swiper JS -->
    <script src="https://unpkg.com/swiper@8/swiper-bundle.min.js"> </script>

    <!-- Initialize Swiper -->
    <script>
        var swiper = new Swiper('.swiper-container', {
            speed: 2000,
            loop: true,
            autoplay: true,
            delay: 50,
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },
        });
    </script>
</body>

</html>